//
//  LRDetailFamousModel.h
//  本地生活圈
//
//  Created by admin on 15/8/16.
//  Copyright (c) 2015年 懒人. All rights reserved.

// 问题1：没用户评价接口和数据

#import "JSONModel.h"

@protocol LRGoodsModel;
@protocol LRCommentList;

@interface LRDetailFamousModel : JSONModel
/**
 *  商家ID
 */
@property (nonatomic, assign) int id;
/**
 *  商家名称
 */
@property (nonatomic, copy) NSString *name;
/**
 *  商家图片链接
 */
@property (nonatomic, copy) NSString *cover;
/**
 *  地理位置
 */
@property (nonatomic, copy) NSString *address;
/**
 *  商品简介
 */
@property (nonatomic, copy) NSString *intro;
/**
 *  电话
 */
@property (nonatomic, copy) NSString *phone;
/**
 *  服务类型
 */
@property (nonatomic, copy) NSString *server;
/**
 *  评分
 */
@property (nonatomic, assign) int score;
/**
 *  商品
 */
@property (nonatomic, strong) NSArray<LRGoodsModel> *goods;
/**
 *  用户评论
 */
@property (nonatomic, strong) NSMutableArray<LRCommentList> *comment_list; // 改为可变
/**
 *  评论页数
 */
@property (nonatomic, assign) int comment_totalPage;
@end

@interface LRGoodsModel :JSONModel

/**
 *  商家ID
 */
@property (nonatomic, assign) int id;
/**
 *  标题
 */
@property (nonatomic, copy) NSString *title;
/**
 *  商品价格
 */
@property (nonatomic, copy) NSString *price;
/**
 *  商品简介
 */
@property (nonatomic, copy) NSString *intro;


@end

@interface LRCommentList : JSONModel
/**
 *  相关人物头像
 */
@property (nonatomic, copy) NSString *avatar;
/**
 *  评论内容
 */
@property (nonatomic, copy) NSString *content;
/**
 *  评论时间
 */
@property (nonatomic, copy) NSString *date;
/**
 *  id
 */
@property (nonatomic, assign) int id;
/**
 *  name
 */
@property (nonatomic, copy) NSString *name;
/**
 *  分数
 */
@property (nonatomic, assign) int score;
/**
 *  id
 */
@property (nonatomic, assign) int user_id;
@end

/*
 {"id":"5",
 "name":"商家名称",
 "cover":"商家图片链接",
 "address":"地理位置",
 "intro":"商家简介",
 "phone":"13657902381",
 "server":"服务类型",
 "score":"0",
 
 "goods":
 [
 {
 "id":"7",
 "title":"标题",
 "price":"商品价格",
 "intro":"商品简介"
 },
 {
 "id":"7",
 "title":"标题",
 "price":"商品价格",
 "intro":"商品简介"
 },
 ],
 
 "totalPage":2,
 "comment_list":{
 "list":[评论相关json信息],
 "totalPage":2
 },
 
 "status":"success"
 }
 
 {
 “status”:   ”error”
 “erro_info”:   ”错误提示”
 }
 
 id:商家ID， name:"商家名称",group_id:商家所属的圈子ID,
 cover:"商家图片链接",address:"地理位置",
 intro:"商家简介",phone:商家的手机号,server:"服务类型",
 score:商家评分, goods：商品列表 ;   comment_list : 评论列表
 */
/*
{
    address = "\U9752\U5c9b\U5e02\U9ec4\U5c9b\U533a\U5d07\U660e\U5c9b\U8def41\U53f7";
    "comment_list" =     (
                          {
                              avatar = "http://q.qlogo.cn/qqapp/101173778/C8C43D6EA332B620FA056B6439040BC3/100";
                              content = "\U4f60\U5988\U7684\Uff0c\U4ec0\U4e48\U670d\U52a1\U6001\U5ea6";
                              date = "08-15 21:53";
                              id = 782;
                              name = "\U53f6\U7e41\U7ec8\U552f\U67af_524265";
                              score = 1;
                              "user_id" = 638;
                          },
                          {
                              avatar = "http://www.qd-life.com/images/default/general.gif";
                              content = "\U5fb7\U739b\U897f\U4e9a";
                              date = "08-15 15:50";
                              id = 774;
                              name = jason;
                              score = 0;
                              "user_id" = 626;
                          }
                          );
    "comment_totalPage" = 2;
    cover = "http://www.qd-life.com/static/upload/2015/04/09/info_20150409153830000000_1_92289_57.jpg";
    goods =     (
    );
    id = 3225;
    intro = "\U4e00\U5bb6\U7279\U8272\U70d8\U7119\U8fde\U9501\U4f01\U4e1a\Uff0c\U4e3b\U8425\U4e1a\U52a1\U7c7b\U578b\Uff1a\U86cb\U7cd5\U3001\U73b0\U70e4\U9762\U5305\U3001\U897f\U70b9\U3001\U4f11\U95f2\U98df\U54c1\U3001\U5496\U5561\U3001\U996e\U6599\U7b49\U3002\U91c7\U7528\U65b0\U9c9c\U4f18\U8d28\U539f\U6750\U6599\Uff0c\U6309\U7167\U73b0\U4ee3\U4eba\U5065\U5eb7\U996e\U98df\U7406\U5ff5\U7684\U9700\U6c42\Uff0c\U4e0d\U65ad\U521b\U65b0\Uff0c\U5236\U4f5c\U51fa\U5473\U9053\U751c\U7f8e\U3001\U65b0\U9c9c\U7cbe\U81f4\U7684\U98df\U54c1\U3002";
    lat = "35.970733";
    lon = "120.170478";
    name = "\U9ea6\U4e50\U6ecb\U86cb\U7cd5\U5e97\Uff08\U5d07\U660e\U5c9b\U8def\U5e97\Uff09";
    phone = "0532-80632433";
    score = 0;
    server = "\U7f8e\U98df";
    status = success;
    totalPage = 0;
}*/

